import { fromJS } from 'immutable'

export const TRADE_ASSETS_ACTION = 'trade_assets_action'

const initialState = fromJS({
  assets: {}
})

export default (state = initialState, action) => {
  if (action.type === TRADE_ASSETS_ACTION) {
    return state.merge(action.data)
  }
  return state
}
